package com.party.service.excellentpartybranch;

/**
 * Created with IntelliJ IDEA.
 * User: beyond
 * Date: 14-9-18
 * Time: 下午10:37
 * To change this template use File | Settings | File Templates.
 */

import com.party.common.Page;
import com.party.model.ExcellentPartyBranch;

import java.util.List;

/**
 * 优秀党支部
 */
public interface ExcellentPartyBranchService {
    /**
     * 优秀党员
     * 增删改查
     */
    public int addExcellentPartyBranch(ExcellentPartyBranch excellentPartyBranch);

    public int deleteExcellentPartyBranchByPrimaryKey(Integer id);

    public int deleteExcellentPartyBranchByIds(String ids);

    public ExcellentPartyBranch getExcellentPartyBranchByPrimaryKey(Integer id);

    public int updateExcellentPartyBranchByPrimaryKey(ExcellentPartyBranch excellentPartyBranch);

    /**
     * 获得优秀党员数据列表（分页）
     * @param pageSize
     * @param pageNumber
     * @return
     */
    public Page getExcellentPartyBranchList(ExcellentPartyBranch excellentPartyBranch, int pageSize, int pageNumber);

    public int addExcellentPartyBranchByUserIds(String[] userids);

    public List<ExcellentPartyBranch> getAllExcellentPartyBranch();

    public List<ExcellentPartyBranch> getAllExcellentPartyBranchByCustom();

    public Page getListPageByCustorm(ExcellentPartyBranch excellentPartyBranch, int pageSize, int pageNumber);
}
